import request from "@/utils/request";

// 查询调拨列表
export function listErpWareAllocate(query) {
  return request({
    url: "/erp/ErpWareAllocate/list",
    method: "get",
    params: query,
  });
}

// 查询调拨详细
export function getErpWareAllocate(wareAllocateId) {
  return request({
    url: "/erp/ErpWareAllocate/" + wareAllocateId,
    method: "get",
  });
}

// 新增调拨
export function addErpWareAllocate(data) {
  return request({
    url: "/erp/ErpWareAllocate",
    method: "post",
    data: data,
  });
}

// 修改调拨
export function updateErpWareAllocate(data) {
  return request({
    url: "/erp/ErpWareAllocate",
    method: "put",
    data: data,
  });
}

// 审核调拨
export function auditErpWareAllocate(data) {
  return request({
    url: "/erp/ErpWareAllocate/audit",
    method: "put",
    data: data,
  });
}

// 删除调拨
export function delErpWareAllocate(wareAllocateId) {
  return request({
    url: "/erp/ErpWareAllocate/" + wareAllocateId,
    method: "delete",
  });
}
